Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EVM] adding commitment over state updates #6451

Merged
merged 14 commits into from
Sep 18, 2024

Conversation

ramtinms
Copy link
Contributor

@ramtinms ramtinms commented Sep 9, 2024

This PR updates the StateDB to return a commitment over the update when Commit is called. This data can be used later for validating re-execution of transactions off-chain. A follow-up PR can expose this value as part of events.

This pr and follow-up needs to be ported to the mainnet branch later.
This PR doesn't change any behaviour but is recommended to release it with follow-up PRs as an HCU (+ update to EVM contract update).

@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 22 lines in your changes missing coverage. Please review.

Project coverage is 41.47%. Comparing base (2a443de) to head (d55256f).

Files with missing lines Patch % Lines
fvm/evm/emulator/state/stateDB.go 52.63% 15 Missing and 3 partials ⚠️
fvm/evm/emulator/emulator.go 76.47% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6451      +/-   ##
==========================================
+ Coverage   41.44%   41.47%   +0.03%     
==========================================
  Files        2026     2027       +1     
  Lines      144629   144711      +82     
==========================================
+ Hits        59937    60019      +82     
+ Misses      78492    78484       -8     
- Partials     6200     6208       +8     
Flag Coverage Δ
unittests 41.47% <80.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ramtinms ramtinms requested a review from sideninja September 9, 2024 17:52
@ramtinms ramtinms marked this pull request as ready for review September 9, 2024 17:54
fvm/evm/emulator/state/stateDB.go Show resolved Hide resolved
fvm/evm/emulator/state/updateCommitter.go Outdated Show resolved Hide resolved
fvm/evm/emulator/state/updateCommitter.go Outdated Show resolved Hide resolved
@ramtinms ramtinms added this pull request to the merge queue Sep 18, 2024
Merged via the queue into master with commit f498ae8 Sep 18, 2024
55 checks passed
@ramtinms ramtinms deleted the ramtin/evm-add-delta-commitment branch September 18, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants